import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import List from '../components/List.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    redirect: '/list',
    children: [
      { path: '/list', component: List }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
